<?php

class Form_Login extends Zend_Form
{

    public function init()
    {
        $this->setName('logar');
        $this->setMethod('post');
        $this->setAction('auth/check');

        $username = new Zend_Form_Element_Text('username');
        $username->setLabel('Usuário:')
            ->setAttribs(array(
                'name' => 'username',
                'size' => 35,
                'title' => 'Nome de usuário'
            ));
        $this->addElement($username);

        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Senha:')
            ->setAttribs(array(
                'name' => 'password',
                'size' => 35,
                'autocomplete' => 'off'
            ));
        $this->addElement($password);

        $submit = new Zend_Form_Element_Submit('Entrar');
        $this->addElement($submit);
    }

}

